package com.ynny.bean06;

public class FruitTest01 {
    public static void main(String[] args) {
        Fruit banana = new Fruit();
        banana.setName("香蕉");
        banana.setArea("西双版纳");
        banana.setPrice(4);
        System.out.println(banana);

        Longan longan = new Longan();
        longan.setArea("福建");
        longan.setName("龙眼");
        longan.setPrice(15);
        System.out.println(longan);

        Lychee lychee = new Lychee();
        lychee.setName("荔枝");
        lychee.setArea("广东");
        lychee.setPrice(12);
        System.out.println(lychee);
    }
}

